package com.steven.io;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;

public class FileToConsole {
	
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("system.txt")));
		
		BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
		
		String line =null;
		while((line=br.readLine())!=null){
			bw.write(line);
			bw.newLine();
			bw.flush();
			
		}
		bw.close();
		
	}
	

}
